package com.fs.jzzn.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.fs.jzzn.pojo.TaskCandidateUsers;
/**
 * @author TiddlerCJ
 */
public interface TaskCandidateUsersRepository extends JpaRepository<TaskCandidateUsers,String>, JpaSpecificationExecutor<TaskCandidateUsers>{
	/**
	 * 通过流程定义及节点id查找节点候选对象
	 * @param processDefinitionId
	 * @param taskId
	 * @return
	 */
	TaskCandidateUsers findByProcessKeyAndTaskId(String processKey,String taskId);
	
	void deleteByProcessKeyAndTaskId(String processKey,String taskId);
}
